﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using vudu.ClasesDominio;
using vudu.Datos.Fachada;

namespace vudu.Logica.Comandos
{
    public class ComandoInsertarPrematricula : Comando<int>
    {
        private Prematricula _prematricula = new Prematricula();

        public Prematricula Prematricula
        {
            get { return _prematricula; }
            set { _prematricula = value; }
        }

        public ComandoInsertarPrematricula(Prematricula prematricula)
        {
            Prematricula = prematricula;
        }

        public override int Ejecutar()
        {
            return new EnlaceDatos().InsertarPrematricula(Prematricula);
        }
    }
}